/*
 * @Date: 2024-02-20 11:03:47
 * @Auth: 463997479@qq.com
 * @LastEditors: 463997479@qq.com
 * @LastEditTime: 2024-02-23 10:32:27
 * @FilePath: \ztc-web\src\api\research\index.js
 */
import request from "@/utils/request";

// 查询定时任务调度列表

export function getEventListByEventAreaType(query) {
  return request({
    url: "/business/event/getEventListByEventAreaType",
    method: "get",
    params: query,
  });
}

export function getEventListByState(query) {
  return request({
    url: "/business/event/getEventListByState",
    method: "get",
    params: query,
  });
}

export function dictList(query) {
  return request({
    url: "/business/event/dictList",
    method: "get",
    params: query,
  });
}
export function getSiteListByAreaNo(query) {
  return request({
    url: "/business/site/getSiteListByAreaNo",
    method: "get",
    params: query,
  });
}

export function getRearchByEventId(query) {
  return request({
    url: `/business/event/getEventDetailByEventId`,
    method: "get",
    params: query,
  });
}

export function getEventflowRecord(query) {
  return request({
    url: `/business/event/getEventflowRecord`,
    method: "get",
    params: query,
  });
}
export function eventJudgeInvalid(query) {
  return request({
    url: `/business/event/eventJudgeInvalid`,
    method: "post",
    data: query,
  });
}

export function eventJudgeValid(query) {
  return request({
    url: `/business/event/eventJudgeValid`,
    method: "post",
    data: query,
  });
}

export function getDeptTree(query) {
  return request({
    url: `/business/event/getDeptListByParentId`,
    method: "get",
    params: query,
  });
}
export function getGpsListByPlateNoAndBeginTimeAndEndTime(query) {
  return request({
    url: `/business/event/getGpsListByPlateNoAndBeginTimeAndEndTime`,
    method: "get",
    params: query,
  });
}

export function eventTransfer(query) {
  return request({
    url: `/business/event/eventTransfer`,
    method: "post",
    data: query,
  });
}

export function getRote(query) {
  return request({
    url: "https://restapi.amap.com/v5/direction/driving",
    method: "get",
    params: query,
  });
}
